package com.appspot.bambugame.server.data;

import java.util.Calendar;
import java.util.TimeZone;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;

@Cached
public class ScramblePlurkQuestion
{
    @Id public long PLURK_ID;
    public String SCRAMBLED_WORD;
    public String UNSCRAMBLED_WORD;
    public String HINT;
    public Boolean IS_SOLVED;
    public Boolean HAS_ADVANCE_OFFERED;
    public Boolean HAS_ADVANCE_BEING_USED;
    public Long TIMESTAMP;
    
    public ScramblePlurkQuestion()
    {
        
    }
    
    public ScramblePlurkQuestion(long pPlurkID, String pScrambledWord, String pUnscrambledWord, String pHint)
    {
        PLURK_ID = pPlurkID;
        SCRAMBLED_WORD = pScrambledWord;
        UNSCRAMBLED_WORD = pUnscrambledWord;
        HINT = pHint;
        IS_SOLVED = Boolean.FALSE;
        HAS_ADVANCE_OFFERED = Boolean.FALSE;
        HAS_ADVANCE_BEING_USED = Boolean.FALSE;
        
        TIMESTAMP = Calendar.getInstance(TimeZone.getTimeZone( "Europe/Amsterdam" )).getTimeInMillis();
    }
}
